package com.zsc.shixun.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 响应码及描述常量
 * </p>
 *
 * @author ZWYZY
 * @since 2020/4/21
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    //ctrl+shift+u ,小写变大写
    LIKE_CLICK_FAIL(900001,"点赞失败"),
    COMMENT_DELETE_FAIL(800005,"不好意思，删除评论失败哦，亲"),
    USER_DELETE_YOURSELF_FAIL(700004,"不好意思，你自己不能删除自己哦,亲"),
    USER_MANAGE_INSERT_FAIL(700003,"不好意思，管理员创建失败哦，亲"),
    USER_MANAGE_DELETE_FAIL(700002,"不好意思，用户删除失败哦，亲"),
    USER_MANAGE_UPDATE_FAIL(700001,"不好意思，用户更改失败哦，亲"),
    COLLECT_HAS_EXIST(600004,"不好意思，已有该收藏夹类型哦，亲"),
    COLLECT_INSERT_FAIL(600003,"不好意思，收藏夹创建失败哦，亲"),
    COLLECT_DELETE_FAIL(600002,"不好意思，收藏夹删除失败哦，亲"),
    COLLECT_UPDATE_FAIL(600001,"不好意思，收藏夹更改失败哦，亲"),
    TYPE_HAS_EXIST(500004,"不好意思，已有该文章类型了哦，亲"),
    TYPE_INSERT_FAIL(500003,"不好意思，类型创建失败哦，亲"),
    TYPE_DELETE_FAIL(500002,"不好意思，类型删除失败哦，亲"),
    TYPE_UPDATE_FAIL(500001,"不好意思，类型更改失败哦，亲"),
    ARTICLE_INSERT_FAIL(400003,"不好意思，创建文章失败哦，亲"),
    ARTICLE_DELETE_FAIL(400002,"不好意思，文章删除失败哦，亲"),
    ARTICLE_UPDATE_FAIL(400001,"不好意思，文章修改失败哦，亲"),
    NOTICE_DELETE_FAIL(300003,"不好意思，公告删除失败哦，亲"),
    NOTICE_INSERT_FAIL(300002,"不好意思，公告插入失败哦，亲"),
    NOTICE_UPDATE_FAIL(300001,"不好意思，公告更改失败，亲"),
    USER_UPDATE_FAIL(200002,"本次操作未能成功，亲！"),
    FILE_UPLOAD_ERROR(200001,"文件上传失败"),
    AUTHORITY_HAS_EXIST(403,"亲，当前操作没有权限哦！"),
    USERNAME_HAS_EXIST(100002,"用户名太受欢迎了，请换一个吧，亲"),
    USER_HAS_EXIST(100001,"邮箱已注册"),
    EXCEL_NOT_DATA(-7,"当前没数据"),
    USER_NOT_FOUND(10000, "用户不存在"),
    ERROR(-1, "未知错误"),
    SUCCESS(200, "响应成功"),
    CHANGE(1, "改变成功"),
    CHANGE_NOT(0, "改变失败"),
    EMAIL_NOT_FOUND(10000,"该邮箱还没注册"),
    DATA_ERROR(-2, "输入数据错误"),
    USER_PASSWORD_NOT_FOUND(4001001, "用户名密码不匹配"),
    USER_BAN(4001002, "该用户已经被禁用请联系管理员"),
    CODE_NULL(4001003, "验证码失效请重新获取"),
    CODE_ERROR(4001004, "请输入正确的验证码"),
    USERNAME_HAS(4001005, "该账号已被占用"),
    REGIST_ERROR(4001006, "注册失败"),
    PHONE_NOT_TRUE(4001007, "手机号格式错误"),
    SEND_MAX(4001008, "当日发送已上限"),
    USER_HAS_LOGIN(4001009,"用户已经登录无需再登录"),
    DATABASE_DEPENDENT_ERROR(-3, "数据库数据之间依赖错误"),
    File_ERROR(-4, "上传的文件错误"),
    EXCELDATA_ERROR(-5, "文件内容错误,操作全部取消"),
    DATA_NULL(-6, "查询的信息为空");
    private Integer code;
    private String msg;
}
